#include "fxcc/yml/Serializer.h"
#include "fxcc/core/graph/common/ModelMetaCacheFile.h"


template<>
void fxcc::yml::Serializer::Encode<ModelMetaCacheFile>(YAML::Node& node, const ModelMetaCacheFile& inst)
{
	SetMapVariableKeyFilter<ModelMetaCache>(node, "m_ModelMetaCache", inst.m_ModelMetaCache, [&](const ModelMetaCache& inst) {return true; }, [&](const std::string& key) {return fs::exists(key); });
}


template<>
bool fxcc::yml::Serializer::Decode<ModelMetaCacheFile>(const YAML::Node& node, ModelMetaCacheFile& inst)
{
	GetMapVariable<ModelMetaCache>(node, "m_ModelMetaCache", inst.m_ModelMetaCache);

	return true;
}